﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseTool
{
    /// <summary>
    /// 机器状态
    /// </summary>
    public class Machine
    {
        /// <summary> 程序即将退出 </summary>
        public static bool WillExit = false;


        /// <summary> 子页面通知主页面刷新事件 </summary>
        public static Action MainFormRefreshAction;
        /// <summary> 切换型号重新读取参数事件 </summary>
        public static Action ChangeProductAction;
        /// <summary> 状态栏（百分比进度条0-1、文本信息、颜色） </summary>
        public static Action<double, string, Color> StatusBarAction;
        /// <summary> 日志控件显示/隐藏 </summary>
        public static Action LogControlVisableChange;
        /// <summary> 日志控件显示状态（仅读） </summary>
        public static bool LogControlVisableReadOnly = true;
    }
}
